#include "user_textedit.h"

user_textedit::user_textedit(QWidget *parent) : QWidget(parent)
{
    this->textedit = new QTextEdit();
    QObject::connect(this, SIGNAL(my_append_signal(const QString &)), this->textedit, SLOT(append(const QString &)));
    QObject::connect(this, SIGNAL(my_clear_signal()), this->textedit, SLOT(clear()));
}

user_textedit::~user_textedit()
{
    delete this->textedit;
}

void user_textedit::my_append(const QString &text)
{
    emit this->my_append_signal(text);
};

void user_textedit::my_clear()
{
    emit this->my_clear_signal();
};

void user_textedit::button_clear(bool rsvd)
{
    emit this->my_clear_signal();
};
